home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_gwu / segment.h < prev    next >
C/C++ Source or Header  |  1996-01-30  |  979b  |  34 lines

  1. /*
  2.  * Copyright (C) 1985-1992  New York University
  3.  * 
  4.  * This file is part of the Ada/Ed-C system.  See the Ada/Ed README file for
  5.  * warranty (none) and distribution info and also the GNU General Public
  6.  * License for more details.
  7.  
  8.  */
  9.  
  10. #ifndef __segment_h
  11. #define __segment_h
  12.  
  13. /* header file for Segment structure and constants */
  14. typedef struct Segment_s {
  15.     short seg_id;        /* code to identify segment */
  16.     short seg_kind;        /* segment kind, one of SEGMENT_KIND...*/
  17.     short seg_size;        /* size of entry in bytes */
  18.     unsigned int seg_pos;    /* index of next element */
  19.     unsigned int seg_maxpos;    /* maximum position value */
  20.     unsigned int seg_dim;      /* dimension of data area */
  21.     unsigned int seg_extend;     /* extension count */
  22.     int **seg_ptr;        /* pointer tracking field */
  23.     char *seg_data;         /* data string as char */
  24. } Segment_s;
  25.  
  26. typedef struct Segment_s *Segment;
  27.  
  28. #define SEGMENT_KIND_CODE 0
  29. #define SEGMENT_KIND_DATA 1
  30.  
  31. #define SEG_ID  1985
  32.  
  33. #endif
  34.